<template>
<div class="dag">
    <p>我的男朋友名字:{{boyname}}</p>
    <button @click="fsn">点击告诉哥哥我的男朋友名字:{{boyname}}</button>

   </div>
</template>

<script>
import Bus from '@/components/js/maemit.js'
export default {

  data () {
    return {
      boyname: '安伦'
    }
  },
  methods: {
    fsn () {
      console.log('有没有发射')
      Bus.$emit('getbfname', this.boyname)
    }
  }

}
</script>

<style>

</style>
